package com.ruoyi.system.domain;

import io.swagger.models.auth.In;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 merchandise
 *
 * @author 格格本奈
 * @date 2024-02-28
 */
public class Merchandise extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Excel(name = "id")
    private Long id;

    /**
     * 索引值
     */
    private Integer index;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String commodity;

    /**
     * 商品价格
     */
    @Excel(name = "商品价格")
    private String price;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String picture;

    /**
     * 商品状态
     */
    @Excel(name = "商品状态")
    private String itemstatus;

    /**
     * 商品简介
     */
    @Excel(name = "商品简介")
    private String particulars;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public Merchandise(Integer index) {
        this.index = index;
    }

    public Merchandise() {
    }

    public void setCommodity(String commodity) {
        this.commodity = commodity;
    }

    public String getCommodity() {
        return commodity;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPrice() {
        return price;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getPicture() {
        return picture;
    }

    public void setItemstatus(String itemstatus) {
        this.itemstatus = itemstatus;
    }

    public String getItemstatus() {
        return itemstatus;
    }

    public void setParticulars(String particulars) {
        this.particulars = particulars;
    }

    public String getParticulars() {
        return particulars;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("index", getIndex())
                .append("commodity", getCommodity())
                .append("price", getPrice())
                .append("picture", getPicture())
                .append("itemstatus", getItemstatus())
                .append("particulars", getParticulars())
                .toString();
    }
}
